<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="x5-fullscreen" content="true">
    <meta name="full-screen" content="yes">
    <meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no"/>
    <title>皇家加勒比寻宝</title>
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/index.css">
</head>
<body>
<script src="js/setFont.js"></script>
<div class="page">
    <div class="tc bg-black">
        <video id="video" class="loading-video" controls
               x-webkit-airplay="allow"
               x5-video-player-type="h5"
               x5-video-player-fullscreen="true"
               x5-video-orientation="portrait"
               controls>
            <source src="img/1.mp4" type="video/mp4">
            <!--<source src="img/1.webm" type="video/webm">-->
            当前浏览器不支持 video直接播放
        </video>
    </div>
</div>
<script>
    var video=document.getElementById('video');
    document.addEventListener("WeixinJSBridgeReady", function () {
        console.log('wx');
        video.play();
    }, false);
    video.addEventListener("ended",function(){
        console.log("ended");
        setTimeout(function () {
            window.location.href='main.html';
        },500)
    });


</script>
</body>
</html>